﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceProcess;
using System.Diagnostics;
/// <summary>
///PDF2SWFCmd 的摘要说明
/// </summary>
public class PDF2SWFCmd
{
	public PDF2SWFCmd()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public static void ExecuteCmd(string cmd, string args)
    {
        using (Process p = new Process())
        {
            p.StartInfo.FileName = cmd;
            p.StartInfo.Arguments = args;
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardOutput = false;
            p.StartInfo.CreateNoWindow = true;
            p.Start();
            p.PriorityClass = ProcessPriorityClass.Normal;
            p.WaitForExit();
        }
    }
}